Conversation
sethkfman
left a comment
There was a problem hiding this comment.
@Daniel-Cross Thanks for getting these added. These are great.
|
Perhaps this is out of scope for this PR, but so long as we're discussing memoization tactics specifically, should we add some general remarks about React Compiler? This seems especially relevant now with the new react compiler beta release that supports react v17-18. It appears that in general manual memoization will be stripped and replaced by React Compiler, and therefore could be removed altogether eventually, although it doesn't seem like this should affect our current code. However, an exception to this rule is memoization that is intended to ensure correctness instead of performance benefits. Maybe we should add a guideline to highlight any new additions that fall under this category with a comment, so that we know not to remove them in the future.
|
Updating the user guidelines for React hooks.